class_name Chest
extends AnimatedSprite


enum {
	Close,		# 未打开
	Empty,		# 打开空的
	Full,		# 打开存在物品的
}


func play(anim: String = "", backwards: bool = false):
	if anim in [str(Close), "close"]:
		frame = Close
	elif anim in [str(Empty), "empty"]:
		frame = Empty
	elif anim in [str(Full), "full"]:
		frame = Full

